//
//  NetworkRequestBase.h
//  TicketingSystem
//
//  Created by Conner Wu on 15/7/20.
//  Copyright (c) 2015年 Beyondsoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetworkOperation.h"
#define para_valid(string)  ((string) == nil?@"":(string))
typedef void (^CompletedBlock) (id result, NSString *message ,id extension , BOOL succ); //extension  前期传nil

@interface NetworkRequestBase : NSObject
{
    NetworkFlag _flag;
    NSString *_path;
    NSDictionary *_params;
    NSArray *_files;
    UIView *_loadingSuperView;
    BOOL _showLoading;
    BOOL _showError;
}

//数据解析时 没有有data字段
@property (nonatomic,assign) BOOL isNotDataStr;

- (id)initWithLoadingSuperview:(UIView *)view;
- (void)startGet;
- (void)startPost;
- (void)startPut;
- (void)startDelete;
- (void)requestCompleted:(id)result succ:(BOOL)succ;
- (void)completion:(CompletedBlock)completion;

@end
